
#ifndef KEYPADHANDLER_H
#define KEYPADHANDLER_H

#include <QObject>
#include <QtGui/QWSKeyboardHandler>
#include <QSocketNotifier>

#if defined(Q_WS_QWS)
class KeypadHandler : public QObject, public QWSKeyboardHandler
{
    Q_OBJECT
public:
    KeypadHandler(const QString &device = QString("/dev/input/event0"), QObject *parent = 0);
    ~KeypadHandler();
    //explicit KeypadHandler(QObject *parent = nullptr);

signals:

public slots:
    void kbdReadyRead();

private:
    int kbdFd;
    QSocketNotifier *notifier;
};
#endif

#endif // KEYPADHANDLER_H
